< previous page page_54 next page >

Page 54
8160-0054a.gif
Figure 3.4
Text boxes on the Employee Information form.
analysis.gifText boxes are the main user-interface tool that is used to gather user input. It is very important that you not only name each one individually, but that you also set the MaxLength to restrict the users input to a reasonable size.
Examples Filename: Employee2.frm

Common Text Box Properties
Table 3.5 lists the properties changed most often for the text box control.
Table 3.5 Common Text Box Properties.
PropertyDescription
EnabledWhen this property is set to True, the user may type text into the text box. When its set to False, the user will not be able to type text in the text box or move the cursor into the control. In addition, the control will be grayed. The gray color in Windows typically means a control is not available to be typed into, or clicked upon.
LockedWhen this property is set to True, the user may move the cursor into the control but will be unable to change any of the characters. This allows the user to view all the text by scrolling left and right. The text will not be grayed.

(table continued on next page)

 
< previous page page_54 next page >

If you like this book, buy it!